package com.ruoyi.system.domain;

import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;

/** 动态打赏实体 */
@ApiModel(value = "PostReward", description = "动态打赏实体")
@Data
@TableName("post_rewards")
public class PostReward {
    @ApiModelProperty("主键ID")
    @Excel(name = "ID")
    private Long id;
    @ApiModelProperty("帖子ID")
    private Long postId;
    @ApiModelProperty("用户ID")
    private Long userId;
    @ApiModelProperty("用户名称")
    private String userName;
    @ApiModelProperty("用户头像")
    private String avatar;
    @ApiModelProperty("打赏金额")
    private BigDecimal amount;
    @ApiModelProperty("留言")
    private String message;
    @ApiModelProperty("打赏时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createdAt;

}
